package com.weishi.project.speedometer.service;

import com.weishi.framework.web.domain.AjaxResult;
import com.weishi.project.speedometer.vo.CurrentShipSpeedVo;
import com.weishi.project.speedometer.vo.DevInfo;
import com.weishi.project.speedometer.vo.MqttDataVo;
import com.weishi.project.training.domain.ShipSpeedRecordLog;
import com.weishi.tcp.vo.TcpMassageDataVo;

import java.util.List;

public interface ISpeedometerService {

    /**
     * 根据船速仪 id 查询船速仪
     */
    AjaxResult selectRealTimeDataListById(String id);

    /**
     * 存储数据
     * @param
     */
    void addRealTimeData(ShipSpeedRecordLog shipSpeedRecordLog);

    /**
     * 存储数据
     * @param
     */
    void addRealTimeData(TcpMassageDataVo tcpMassageDataVo);
    void addRealTimeData(List<TcpMassageDataVo> tcpMassageDataVo);
    void addRealTimeData(MqttDataVo mqttDataVo);

    /**
     * 查询指定设备的实时数据
     * @param devId
     */
    DevInfo selectRealTimeDataByDevId(String devId);

}
